// 切换主题
const html = document.querySelector('html')
// 默认主题
const DEFAULT_THEME = 'light'
const THEME = localStorage.getItem('theme')

if (THEME) {
	html!.setAttribute('data-theme', THEME as string)
} else {
	html!.setAttribute('data-theme', DEFAULT_THEME)
}
